/**
 * There are code generation
 */
package com.neusoft.lohas.modules.ivm.dao.order;

import org.springframework.stereotype.Repository;

import com.neusoft.lohas.common.persistence.BaseDao;
import com.neusoft.lohas.common.persistence.Parameter;
import com.neusoft.lohas.modules.ivm.entity.order.DeliveryInfo;
import com.neusoft.lohas.modules.ivm.entity.order.Order;

/**
 * 送货单信息DAO接口
 * @author Jackie.Liu
 * @version 2014-12-23
 */
@Repository
public class DeliveryInfoDao extends BaseDao<DeliveryInfo> {

	public DeliveryInfo findByOrderId(String orderId) {
		return getByHql("from DeliveryInfo where order.id = :p1 and delFlag = :p2", new Parameter(orderId, Order.DEL_FLAG_NORMAL));
	}
	
}
